Skip to content

Fix log write failure when installing port for the first time#10287

Merged
strega-nil merged 1 commit intomicrosoft:masterfrom
JackBoosY:dev/jack/Fix_port_build_when_firsttime
Mar 3, 2020
Merged

Fix log write failure when installing port for the first time#10287
strega-nil merged 1 commit intomicrosoft:masterfrom
JackBoosY:dev/jack/Fix_port_build_when_firsttime

Conversation

@JackBoosY
Copy link
Contributor

When installing the port for the first time, the following code is executed before buildtrees/${PORT} is created, which results in an error Failed to open '...' for writing:

std::ofstream out_file(stdoutlog.native().c_str(), std::ios::out | std::ios::binary | std::ios::trunc);

So add a judgment before this code: If the The folder is created first.

Related: #10089

@JackBoosY
Copy link
Contributor Author

JackBoosY commented Mar 3, 2020

Hi @strega-nil, this PR has a high priority, could you please priority to review and merge this PR ?

@JackBoosY
Copy link
Contributor Author

JackBoosY commented Mar 3, 2020

Linux regressions unrelated with this PR.

@strega-nil
Copy link
Contributor

Thanks Jack :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants